import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';

/// 登录事件
@immutable
abstract class LoginEvent extends Equatable{}

/// 登录事件
class LoginPressed extends LoginEvent {
  /// 用户名
  final String username;
  /// 密码
  final String password;

  LoginPressed({
    @required this.username,
    @required this.password
  });

  @override
  List<Object> get props => [username, password];

  @override
  String toString() => "LoginPressed { username: $username, password: $password }";
}